﻿<%@ Page Language="C#" MasterPageFile="~/FrameMasterPage.master" AutoEventWireup="true" CodeFile="planningEdit.aspx.cs" Inherits="planningEdit" Title="Untitled Page" %>

    
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="m_contentBody" Runat="Server">



<asp:Panel runat="server" ID="pnlBody">
<asp:Label ID="Label1" runat="server" CssClass="permissionstyle"></asp:Label>
<table id="tbdisplay" runat="server" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan="2"><br /><br /></td></tr>
                    <tr>
                        <td>
                        
                            <img src="images/pnlTitle1Left.png" alt="" width="6" height="24"/></td>
                        <td style="width:100%" class="txtHeader">
                            <asp:Label ID="lblHeader" runat="server"></asp:Label>
                        </td>
                        <td align="right">
                            <img src="images/pnlTitle1Right.png" alt="" width="6" height="24"/></td>
                    </tr>
                </table>
                <table width="100%" border="0" cellpadding="3" cellspacing="0">
                <tr valign="top">
                        <td style="width:30%" class="Description">
                            Work Order Nº 
                            <asp:Label ID="Label2" runat="server" CssClass="redLabel">*</asp:Label>
                        </td>
                        <td style="width:70%">
                            <asp:TextBox runat="server" ID="txtWOID" Width="150" MaxLength="20"></asp:TextBox>
                            <asp:Label ID="lblRequireWorkOrderID" runat="server" ForeColor="Red"></asp:Label>
                         </td>
                    </tr>
                    <tr valign="top">
                        <td style="width:30%" class="Description">
                            Employee to be assigned<asp:Label ID="Label3" runat="server" 
                                CssClass="redLabel">*</asp:Label>
                        </td>
                        <td style="width:70%">
                            
                            <asp:DropDownList ID="drlITStaff" runat="server" 
                                DataSourceID="odsITemployee" DataTextField="EmployeeName" 
                                DataValueField="EmployeeId" Height="25px" Width="180px" 
                                AppendDataBoundItems="True" 
                                onselectedindexchanged="drlITStaff_SelectedIndexChanged">
                                <asp:ListItem Value="-1">--- Choose an IT employee ---</asp:ListItem>
                            </asp:DropDownList> 
                            <asp:ImageButton ID="imgButtonLabor" runat="server" Height="16px" 
                                ImageUrl="~/images/calendar.png" onclick="imgButton_Click" Width="16px" />
                           
                            <asp:Label ID="lblRequiredEmployee" runat="server" ForeColor="Red"></asp:Label>
                           
                        </td>
                    </tr>
                    <tr valign="top">
                        <td style="width:30%" class="Description">
                            Plan date(mm/dd/yy)<asp:Label ID="Label4" runat="server" CssClass="redLabel">*</asp:Label>
                        </td>
                        <td style="width:70%">
                           
                            
                        
                            
                            <asp:TextBox ID="txtPlanDate" runat="server" Width="76px"></asp:TextBox>
                            
                            <asp:Image ID="imgCalendar" runat="server" ImageUrl="~/images/calendar.png" />
                            <asp:Label ID="lblRequiredPlanDate" runat="server" 
                                ForeColor="Red"></asp:Label>
                            <cc2:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txtPlanDate" PopupButtonID="imgCalendar">
                            </cc2:CalendarExtender> 
                            
                        </td>
                    </tr>
                    <tr valign="top">
                        <td style="width:30%" class="Description">
                            Plan time (hh:mm)
                            <asp:Label ID="Label5" runat="server" CssClass="redLabel">*</asp:Label>
                        </td>
                        <td style="width:70%">
                            <asp:TextBox runat="server" ID="txtPlanTime" Width="150" MaxLength="20"></asp:TextBox>
                            
                            <asp:Label ID="lblRequiredPlanTime" runat="server" ForeColor="Red"></asp:Label>
                            
                        </td>
                    </tr>
                    <tr valign="top">
                        <td style="width:30%" class="Description">
                            Estimate time (in minutes)</td>
                        <td style="width:70%">
                           
                            <asp:TextBox ID="txtEstimatedTime" runat="server" MaxLength="20" 
                                Width="150"></asp:TextBox>
                           
                        </td>
                            
                    </tr>
                    <tr valign="top">
                        <td class="Description" style="width:30%">
                            Priority</td>
                        <td style="width:70%">
                            <asp:DropDownList ID="drlPriority" runat="server" 
                                Height="25px" Width="100px">
                                <asp:ListItem>1</asp:ListItem>
                                <asp:ListItem>2</asp:ListItem>
                                <asp:ListItem>3</asp:ListItem>
                                <asp:ListItem>4</asp:ListItem>
                                <asp:ListItem>5</asp:ListItem>
                                <asp:ListItem>6</asp:ListItem>
                                <asp:ListItem>7</asp:ListItem>
                                <asp:ListItem>8</asp:ListItem>
                                <asp:ListItem>9</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr valign="top">
                        <td class="Description" style="width:30%; height: 26px;">
                            Remark</td>
                        <td style="width:70%; height: 26px;">
                            <asp:TextBox ID="txtRemark" runat="server" Height="62px" Width="335px" 
                                TextMode="MultiLine"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="Description" style="width:30%">
                            &nbsp;</td>
                        <td style="width:70%">
                            <asp:Button ID="btnValidateWorkOrder" runat="server" BorderStyle="Dotted" 
                                CssClass="btnexpress" Height="25px" onclick="btnValidateWorkOrder_Click" 
                                Text="Validate" Width="71px" />
                            <asp:Button ID="btnCancelWorkOrder" runat="server" BorderStyle="Dotted" 
                                CssClass="btnexpress" Height="25px" onclick="btnCancelWorkOrder_Click" 
                                Text="Cancel" Width="71px" />
                            <asp:Label ID="lblMessageValidate" runat="server" CssClass="permissionstyle"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="width:30%">
                            &nbsp;</td>
                        <td style="width:70%">
                            <asp:Label ID="lblInformation" runat="server" ForeColor="Red"></asp:Label>
                            <asp:TextBox ID="txtHiddenTaskId" runat="server" 
                                Height="17px" Visible="False" Width="175px"></asp:TextBox>
                            &nbsp;<asp:TextBox ID="txtHiddenPlanningId" runat="server" Enabled="False" 
                                Height="17px" Visible="False" Width="175px"></asp:TextBox>
                            <asp:ObjectDataSource ID="odsITemployee" runat="server" 
                                SelectMethod="GetAssignedEmployees" TypeName="Service.ReferenceDataService">
                            </asp:ObjectDataSource>
                        </td>
                    </tr>
                </table>
</asp:Panel>
</asp:Content>

